package com.cty.Stack;

public class oper {
    //写一个判断运算符等级的方法
    public static int getValue(String s) {
        int value = 0;
        switch (s) {
            case "+" :
                value = 1;
                break;
            case "-" :
                value = 1;
                break;
            case "*" :
                value = 2;
                break;
            case "/" :
                value = 2;
                break;
            case "(" :
                break;
        }
        return value;
    }
}
